<template>
  <div>
    <h1>Hello! router!</h1>
    <router-view name="ShopTop"></router-view>
    <router-view ></router-view>
    <router-view name="ShopFloot"></router-view>
    <!--使用 router-link 组件进行导航 -->
    <!--通过传递 `to` 来指定链接 -->
    <!--`<router-link>` 将呈现一个带有正确 `href` 属性的 `<a>` 标签-->
    <router-link to="/">Go to Home</router-link>
    <router-link to="/about">Go to About</router-link>
    <router-link to="/user/123">Go to User</router-link>
    <!-- <router-link to="/news/456">Go to News</router-link> -->
    <router-link :to="{name:'news',params:{id:456}}">Go to News</router-link>
    <router-link to="/parent">Go to Parent</router-link>
    <router-link to="/page">Go to Page</router-link>
    <router-link to="/shop/123">Go to Shop</router-link>
    <!-- 路由出口 -->
    <!-- 路由匹配到的组件将渲染在这里 -->
  </div>
</template>